/*
 * Filename:    WarnPoolDAOImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年11月3日
 */
package com.paic.mhis.hcpms.warning.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.warning.dao.WarningPoolDAO;
import com.paic.mhis.hcpms.warning.dto.WarningIndicationDTO;
import com.paic.mhis.hcpms.warning.dto.WarningInfoJobDTO;
import com.paic.mhis.hcpms.warning.dto.WarningParameterJobDTO;
import com.paic.mhis.hcpms.warning.dto.WarningPoolDTO;
import com.paic.mhis.hcpms.warning.dto.WarningValueDescDTO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("warnPoolDao")
public class WarningPoolDAOImpl extends BaseDAO implements WarningPoolDAO {

	@Override
	public List<WarningIndicationDTO> getWarnIndicationData(WarningParameterJobDTO warningParameter) {
		// TODO Auto-generated method stub
		return (List<WarningIndicationDTO>) this._queryForList("fwa.warning.Warn_warnIndication", warningParameter);
	}

	@Override
	public List<WarningValueDescDTO> getWarnValueDescData(WarningParameterJobDTO warningParameter) {
		// TODO Auto-generated method stub
		return (List<WarningValueDescDTO>) this._queryForList("fwa.warning.Warn_valueDesc", warningParameter);
	}

	@Override
	public List<WarningInfoJobDTO> getWarnPoolData(WarningParameterJobDTO warningParameter) {
		// TODO Auto-generated method stub
		return (List<WarningInfoJobDTO>) this._queryForList("fwa.warning.Warn_pool", warningParameter);
	}

	@Override
	public void insertWarnPoolData(List<WarningPoolDTO> warnPoolList) {
		// TODO Auto-generated method stub
		this._insert("fwa.warning.Warn_insertWarnPool", warnPoolList);

	}

	@Override
	public void updateWarnPoolTaskNo(List<WarningInfoJobDTO> warnInfoDTO) {
		// TODO Auto-generated method stub
		this._update("fwa.warning.Warn_pool_tashNo", warnInfoDTO);
	}

}
